home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / DSTRB3.ZIP / SETUP.BAT < prev   
DOS Batch File  |  1994-01-18  |  4KB  |  137 lines

  1. @ECHO OFF
  2. CLS
  3.  
  4. IF "%1" == "" GOTO NOPATH
  5. IF "%2" == "" GOTO NOPATH
  6. IF "%3" == "" GOTO NOPATH
  7.  
  8. :OK
  9. CLS
  10. ECHO.
  11. ECHO     Welcome to the beta3 release of DSTReader, a QWK mail packet reader for
  12. ECHO windows, you will notice that the install 'program' is simply a DOS batch
  13. ECHO file, this is because, I haven't written the windows install program yet
  14. ECHO ( in fact the mail reader is not yet done either! ) so you'll just have to
  15. ECHO live throught the batch file untill the release version comes out.
  16. ECHO.
  17. ECHO     This batch file will unzip the apropriate files to the approriate
  18. ECHO directories, then allow you to run DSTReader.  It will not make an icon
  19. ECHO for you.  If you don't know how to make an icon in Program Manager, you
  20. ECHO shouldn't be using this beta copy of the reader!
  21. ECHO.
  22. ECHO     There are several files that will be copied to you windows directory,
  23. ECHO including two called PKUNZIP.PIF and PKZIP.PIF, these files are used to
  24. ECHO control how DSTReader extracts and archives the messages.  If you allready
  25. ECHO have files named this in you windows directory, you should abort now and
  26. ECHO copy them to a safe place, where you can compare the ones in this archive
  27. ECHO to the ones you backed up.
  28. ECHO.
  29. ECHO     For further information please read the readme.wri file in the
  30. ECHO directory you have installed DSTReader.
  31. ECHO.
  32. PAUSE
  33.  
  34. IF "%3" == "62" GOTO DOS62
  35.  
  36. IF NOT EXIST %1\NUL MD %1
  37. PKUNZIP FILES.ZIP > NUL
  38. COPY BWCC.DLL %2\SYSTEM > NUL
  39. COPY VLISTBOX.DLL %2\SYSTEM > NUL
  40. COPY DSTWAV.EXE %1 > NUL
  41. COPY DSTREAD.EXE %1 > NUL
  42. COPY DSTREAD.INI %2 > NUL
  43. COPY README.WRI %1 > NUL
  44. COPY DSTREAD.WRI %1 > NUL
  45. COPY ARJ.PIF %2 > NUL
  46. COPY LHA.PIF %2 > NUL
  47. COPY PKXARC.PIF %2 > NUL
  48. COPY PKARC.PIF %2 > NUL
  49. COPY PKUNZIP.PIF %2 > NUL
  50. COPY PKZIP.PIF %2 > NUL
  51. GOTO THEREST
  52.  
  53. :DOS62
  54. IF NOT EXIST %1 MD %1
  55. PKUNZIP FILES.ZIP > NUL
  56. COPY BWCC.DLL %2\SYSTEM /Y > NUL
  57. COPY VLISTBOX.DLL %2\SYSTEM /Y > NUL
  58. COPY DSTWAV.EXE %1 /Y > NUL
  59. COPY DSTREAD.EXE %1 /Y > NUL
  60. COPY DSTREAD.INI %2 /Y > NUL
  61. COPY README.WRI %1 /Y > NUL
  62. COPY DSTREAD.WRI %1 /Y > NUL
  63. COPY ARJ.PIF %2 /Y > NUL
  64. COPY LHA.PIF %2 /Y > NUL
  65. COPY PKXARC.PIF %2 /Y > NUL
  66. COPY PKARC.PIF %2 /Y > NUL
  67. COPY PKUNZIP.PIF %2 /Y > NUL
  68. COPY PKZIP.PIF %2 /Y > NUL
  69. GOTO THEREST
  70.  
  71. :THEREST
  72. DEL BWCC.DLL > NUL
  73. DEL VLISTBOX.DLL > NUL
  74. DEL DSTREAD.EXE > NUL
  75. DEL DSTREAD.INI > NUL
  76. DEL README.WRI > NUL
  77. DEL DSTREAD.WRI > NUL
  78. DEL ARJ.PIF > NUL
  79. DEL LHA.PIF > NUL
  80. DEL PKXARC.PIF > NUL
  81. DEL PKARC.PIF > NUL
  82. DEL PKUNZIP.PIF > NUL
  83. DEL PKZIP.PIF > NUL
  84. DEL DSTWAV.EXE > NUL
  85.  
  86. IF NOT EXIST %2\SYSTEM\BWCC.DLL GOTO ERROR
  87. IF NOT EXIST %2\SYSTEM\VLISTBOX.DLL GOTO ERROR
  88. IF NOT EXIST %1\DSTREAD.EXE GOTO ERROR
  89. IF NOT EXIST %2\DSTREAD.INI GOTO ERROR
  90. IF NOT EXIST %1\README.WRI GOTO ERROR
  91. IF NOT EXIST %1\DSTREAD.WRI GOTO ERROR
  92. IF NOT EXIST %2\ARJ.PIF GOTO ERROR
  93. IF NOT EXIST %2\LHA.PIF GOTO ERROR
  94. IF NOT EXIST %2\PKXARC.PIF GOTO ERROR
  95. IF NOT EXIST %2\PKARC.PIF GOTO ERROR
  96. IF NOT EXIST %2\PKUNZIP.PIF GOTO ERROR
  97. IF NOT EXIST %2\PKZIP.PIF GOTO ERROR
  98. IF NOT EXIST %1\DSTWAV.EXE GOTO ERROR
  99.  
  100. GOTO MESSAGE
  101.  
  102. :NOPATH
  103. ECHO.
  104. ECHO.
  105. ECHO     You need to specify a path on the command line of this batch program,
  106. ECHO as well as the path to your windows directory, and a extra parameter to
  107. ECHO tell me which version of DOS you are running, if you are running 6.2, add
  108. ECHO a 62 to the end of the setup statement.  If you are running anything else
  109. ECHO add a 60 to the end of the setup statement.
  110. ECHO.
  111. ECHO Please try again with something like this...
  112. ECHO.
  113. ECHO    SETUP C:\WINAPPS\DSTREAD C:\WINDOWS 62
  114. ECHO.
  115. ECHO *Note: There are no trailing backslashs.
  116. ECHO.
  117. GOTO END
  118.  
  119. :MESSAGE
  120. CLS
  121. ECHO.
  122. ECHO     Everything should be ok, you can now go to program manager and add an
  123. ECHO icon to your favorite group for DSTReader.  For more information on
  124. ECHO DSTReader, read the file README.WRI or DSTREAD.WRI in the instalation
  125. ECHO directory.
  126. ECHO.
  127. GOTO END
  128.  
  129. :ERROR
  130. CLS
  131. ECHO.
  132. ECHO     An error has occured, please unzip the archive FILES.ZIP manually and
  133. ECHO read the file README.WRI for furthor instructions.
  134. ECHO.
  135.  
  136. :END
  137.